.class public Lcom/burstly/lib/component/BurstlyAdaptorController;
.super Lcom/burstly/lib/component/AdaptorController;
.source "BurstlyAdaptorController.java"


# instance fields
.field private mClickHandler:Lcom/burstly/lib/component/ITrackClickResponseHandler;


# direct methods
.method constructor <init>(Lcom/burstly/lib/component/ControllerConfig;)V
    .locals 0
    .parameter "config"

    .prologue
    .line 39
    invoke-direct {p0, p1}, Lcom/burstly/lib/component/AdaptorController;-><init>(Lcom/burstly/lib/component/ControllerConfig;)V

    .line 40
    return-void
.end method


# virtual methods
.method public bridge synthetic click()V
    .locals 0

    .prologue
    .line 26
    invoke-super {p0}, Lcom/burstly/lib/component/AdaptorController;->click()V

    return-void
.end method

.method public bridge synthetic configure(Ljava/util/Map;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 26
    invoke-super {p0, p1}, Lcom/burstly/lib/component/AdaptorController;->configure(Ljava/util/Map;)V

    return-void
.end method

.method protected defaultPostClickCallback(Lcom/burstly/lib/network/beans/TrackClickResult;)V
    .locals 1
    .parameter "responseBean"

    .prologue
    .line 79
    iget-boolean v0, p0, Lcom/burstly/lib/component/BurstlyAdaptorController;->mDestroyed:Z

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/burstly/lib/component/BurstlyAdaptorController;->mClickHandler:Lcom/burstly/lib/component/ITrackClickResponseHandler;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/burstly/lib/component/BurstlyAdaptorController;->mClickHandler:Lcom/burstly/lib/component/ITrackClickResponseHandler;

    if-eqz v0, :cond_0

    .line 80
    iget-object v0, p0, Lcom/burstly/lib/component/BurstlyAdaptorController;->mClickHandler:Lcom/burstly/lib/component/ITrackClickResponseHandler;

    invoke-interface {v0, p1, p0}, Lcom/burstly/lib/component/ITrackClickResponseHandler;->handleResponse(Lcom/burstly/lib/network/beans/TrackClickResult;Lcom/burstly/lib/component/IAdaptorController;)V

    .line 82
    :cond_0
    return-void
.end method

.method public bridge synthetic destroy()V
    .locals 0

    .prologue
    .line 26
    invoke-super {p0}, Lcom/burstly/lib/component/AdaptorController;->destroy()V

    return-void
.end method

.method public bridge synthetic equals(Ljava/lang/Object;)Z
    .locals 1
    .parameter "x0"

    .prologue
    .line 26
    invoke-super {p0, p1}, Lcom/burstly/lib/component/AdaptorController;->equals(Ljava/lang/Object;)Z

    move-result v0

    return v0
.end method

.method public bridge synthetic getAdaptor()Lcom/burstly/lib/component/IBurstlyAdaptor;
    .locals 1

    .prologue
    .line 26
    invoke-super {p0}, Lcom/burstly/lib/component/AdaptorController;->getAdaptor()Lcom/burstly/lib/component/IBurstlyAdaptor;

    move-result-object v0

    return-object v0
.end method

.method public bridge synthetic getBursltlyAdListener()Lcom/burstly/lib/component/IInternalBurstlyAdListener;
    .locals 1

    .prologue
    .line 26
    invoke-super {p0}, Lcom/burstly/lib/component/AdaptorController;->getBursltlyAdListener()Lcom/burstly/lib/component/IInternalBurstlyAdListener;

    move-result-object v0

    return-object v0
.end method

.method public bridge synthetic getCurrentAdData()Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;
    .locals 1

    .prologue
    .line 26
    invoke-super {p0}, Lcom/burstly/lib/component/AdaptorController;->getCurrentAdData()Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;

    move-result-object v0

    return-object v0
.end method

.method protected getDataForComponent()V
    .locals 6

    .prologue
    const/4 v5, 0x0

    .line 44
    iget-boolean v2, p0, Lcom/burstly/lib/component/BurstlyAdaptorController;->mDestroyed:Z

    if-nez v2, :cond_1

    .line 45
    new-instance v1, Lcom/burstly/lib/network/ResponseObject;

    invoke-direct {v1}, Lcom/burstly/lib/network/ResponseObject;-><init>()V

    .line 46
    .local v1, params:Lcom/burstly/lib/network/ResponseObject;
    invoke-virtual {p0, v1}, Lcom/burstly/lib/component/BurstlyAdaptorController;->fillUpWithCurrentResponseData(Lcom/burstly/lib/network/ResponseObject;)V

    .line 48
    :try_start_0
    invoke-virtual {p0, v1}, Lcom/burstly/lib/component/BurstlyAdaptorController;->beginTransaction(Lcom/burstly/lib/network/ResponseObject;)V

    .line 49
    invoke-virtual {p0}, Lcom/burstly/lib/component/BurstlyAdaptorController;->setAdaptorListener()V

    .line 50
    invoke-virtual {p0, v1}, Lcom/burstly/lib/component/BurstlyAdaptorController;->isContinueProcessing(Lcom/burstly/lib/network/ResponseObject;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 51
    invoke-static {p0}, Lcom/burstly/lib/component/BurstlyAdaptorController;->handleServerResponse(Lcom/burstly/lib/component/AdaptorController;)V

    .line 63
    .end local v1           #params:Lcom/burstly/lib/network/ResponseObject;
    :goto_0
    return-void

    .line 53
    .restart local v1       #params:Lcom/burstly/lib/network/ResponseObject;
    :cond_0
    sget-object v2, Lcom/burstly/lib/component/BurstlyAdaptorController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    iget-object v3, p0, Lcom/burstly/lib/component/BurstlyAdaptorController;->mTag:Ljava/lang/String;

    const-string v4, "Parsed response is null or parameters for this network are incorrect."

    const/4 v5, 0x0

    new-array v5, v5, [Ljava/lang/Object;

    invoke-virtual {v2, v3, v4, v5}, Lcom/burstly/lib/util/LoggerExt;->logError(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 54
    iget-object v2, p0, Lcom/burstly/lib/component/BurstlyAdaptorController;->mAdaptorListener:Lcom/burstly/lib/component/AdaptorListener;

    iget-object v3, p0, Lcom/burstly/lib/component/BurstlyAdaptorController;->mNetworkName:Ljava/lang/String;

    iget-boolean v4, p0, Lcom/burstly/lib/component/BurstlyAdaptorController;->mIsInterstitial:Z

    const-string v5, ""

    invoke-virtual {v2, v3, v4, v5}, Lcom/burstly/lib/component/AdaptorListener;->failedToLoad(Ljava/lang/String;ZLjava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 57
    :catch_0
    move-exception v0

    .line 58
    .local v0, exc:Ljava/lang/Throwable;
    invoke-static {p0, v0}, Lcom/burstly/lib/component/BurstlyAdaptorController;->handleErrorFlow(Lcom/burstly/lib/component/AdaptorController;Ljava/lang/Throwable;)V

    goto :goto_0

    .line 61
    .end local v0           #exc:Ljava/lang/Throwable;
    .end local v1           #params:Lcom/burstly/lib/network/ResponseObject;
    :cond_1
    sget-object v2, Lcom/burstly/lib/component/BurstlyAdaptorController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    iget-object v3, p0, Lcom/burstly/lib/component/BurstlyAdaptorController;->mTag:Ljava/lang/String;

    const-string v4, "Old Burstly View has been destroyed so safely skip rest of lifecycle."

    new-array v5, v5, [Ljava/lang/Object;

    invoke-virtual {v2, v3, v4, v5}, Lcom/burstly/lib/util/LoggerExt;->logWarning(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_0
.end method

.method public bridge synthetic getNetworkName()Ljava/lang/String;
    .locals 1

    .prologue
    .line 26
    invoke-super {p0}, Lcom/burstly/lib/component/AdaptorController;->getNetworkName()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public bridge synthetic getViewId()Ljava/lang/String;
    .locals 1

    .prologue
    .line 26
    invoke-super {p0}, Lcom/burstly/lib/component/AdaptorController;->getViewId()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public bridge synthetic hashCode()I
    .locals 1

    .prologue
    .line 26
    invoke-super {p0}, Lcom/burstly/lib/component/AdaptorController;->hashCode()I

    move-result v0

    return v0
.end method

.method public bridge synthetic hideComponent()V
    .locals 0

    .prologue
    .line 26
    invoke-super {p0}, Lcom/burstly/lib/component/AdaptorController;->hideComponent()V

    return-void
.end method

.method public bridge synthetic isConstantRecepient()Z
    .locals 1

    .prologue
    .line 26
    invoke-super {p0}, Lcom/burstly/lib/component/AdaptorController;->isConstantRecepient()Z

    move-result v0

    return v0
.end method

.method public bridge synthetic isDebugGestureOn()Z
    .locals 1

    .prologue
    .line 26
    invoke-super {p0}, Lcom/burstly/lib/component/AdaptorController;->isDebugGestureOn()Z

    move-result v0

    return v0
.end method

.method public bridge synthetic isPrefetchRequest()Z
    .locals 1

    .prologue
    .line 26
    invoke-super {p0}, Lcom/burstly/lib/component/AdaptorController;->isPrefetchRequest()Z

    move-result v0

    return v0
.end method

.method public bridge synthetic onCloseOverlay()V
    .locals 0

    .prologue
    .line 26
    invoke-super {p0}, Lcom/burstly/lib/component/AdaptorController;->onCloseOverlay()V

    return-void
.end method

.method public bridge synthetic onShowOverlay()V
    .locals 0

    .prologue
    .line 26
    invoke-super {p0}, Lcom/burstly/lib/component/AdaptorController;->onShowOverlay()V

    return-void
.end method

.method public bridge synthetic pause()V
    .locals 0

    .prologue
    .line 26
    invoke-super {p0}, Lcom/burstly/lib/component/AdaptorController;->pause()V

    return-void
.end method

.method public bridge synthetic resume()V
    .locals 0

    .prologue
    .line 26
    invoke-super {p0}, Lcom/burstly/lib/component/AdaptorController;->resume()V

    return-void
.end method

.method public bridge synthetic setBursltlyAdListener(Lcom/burstly/lib/component/IInternalBurstlyAdListener;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 26
    invoke-super {p0, p1}, Lcom/burstly/lib/component/AdaptorController;->setBursltlyAdListener(Lcom/burstly/lib/component/IInternalBurstlyAdListener;)V

    return-void
.end method

.method public bridge synthetic setClientTargetParams(Ljava/util/Map;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 26
    invoke-super {p0, p1}, Lcom/burstly/lib/component/AdaptorController;->setClientTargetParams(Ljava/util/Map;)V

    return-void
.end method

.method public bridge synthetic setCustomNetworkParams(Ljava/util/Map;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 26
    invoke-super {p0, p1}, Lcom/burstly/lib/component/AdaptorController;->setCustomNetworkParams(Ljava/util/Map;)V

    return-void
.end method

.method public bridge synthetic setInterstitialMode(Z)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 26
    invoke-super {p0, p1}, Lcom/burstly/lib/component/AdaptorController;->setInterstitialMode(Z)V

    return-void
.end method

.method public bridge synthetic setIsDebugGestureOn(Z)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 26
    invoke-super {p0, p1}, Lcom/burstly/lib/component/AdaptorController;->setIsDebugGestureOn(Z)V

    return-void
.end method

.method public bridge synthetic setLifeCycleListener(Lcom/burstly/lib/component/IAdaptorController$IComponentQueueLifecycleListener;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 26
    invoke-super {p0, p1}, Lcom/burstly/lib/component/AdaptorController;->setLifeCycleListener(Lcom/burstly/lib/component/IAdaptorController$IComponentQueueLifecycleListener;)V

    return-void
.end method

.method public bridge synthetic setParent(Lcom/burstly/lib/ui/BurstlyView;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 26
    invoke-super {p0, p1}, Lcom/burstly/lib/component/AdaptorController;->setParent(Lcom/burstly/lib/ui/BurstlyView;)V

    return-void
.end method

.method public bridge synthetic setPrefetchedRequest(Z)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 26
    invoke-super {p0, p1}, Lcom/burstly/lib/component/AdaptorController;->setPrefetchedRequest(Z)V

    return-void
.end method

.method public bridge synthetic setResponseSaver(Lcom/burstly/lib/persistance/ResponseSaver;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 26
    invoke-super {p0, p1}, Lcom/burstly/lib/component/AdaptorController;->setResponseSaver(Lcom/burstly/lib/persistance/ResponseSaver;)V

    return-void
.end method

.method public showComponent()V
    .locals 2

    .prologue
    .line 67
    invoke-super {p0}, Lcom/burstly/lib/component/AdaptorController;->showComponent()V

    .line 70
    const/4 v0, 0x0

    .line 71
    .local v0, aAdaptor:Lcom/burstly/lib/component/IClickTracker;
    iget-object v1, p0, Lcom/burstly/lib/component/BurstlyAdaptorController;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    instance-of v1, v1, Lcom/burstly/lib/component/IClickTracker;

    if-eqz v1, :cond_0

    .line 72
    iget-object v0, p0, Lcom/burstly/lib/component/BurstlyAdaptorController;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    .end local v0           #aAdaptor:Lcom/burstly/lib/component/IClickTracker;
    check-cast v0, Lcom/burstly/lib/component/IClickTracker;

    .line 73
    .restart local v0       #aAdaptor:Lcom/burstly/lib/component/IClickTracker;
    invoke-interface {v0}, Lcom/burstly/lib/component/IClickTracker;->getResponseHandler()Lcom/burstly/lib/component/ITrackClickResponseHandler;

    move-result-object v1

    iput-object v1, p0, Lcom/burstly/lib/component/BurstlyAdaptorController;->mClickHandler:Lcom/burstly/lib/component/ITrackClickResponseHandler;

    .line 75
    :cond_0
    return-void
.end method

.method public bridge synthetic showPrecachedAd()V
    .locals 0

    .prologue
    .line 26
    invoke-super {p0}, Lcom/burstly/lib/component/AdaptorController;->showPrecachedAd()V

    return-void
.end method

.method public bridge synthetic start()V
    .locals 0

    .prologue
    .line 26
    invoke-super {p0}, Lcom/burstly/lib/component/AdaptorController;->start()V

    return-void
.end method

.method public bridge synthetic stop()V
    .locals 0

    .prologue
    .line 26
    invoke-super {p0}, Lcom/burstly/lib/component/AdaptorController;->stop()V

    return-void
.end method

.method public bridge synthetic toString()Ljava/lang/String;
    .locals 1

    .prologue
    .line 26
    invoke-super {p0}, Lcom/burstly/lib/component/AdaptorController;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
